/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

public class Tarjeta {
	public Tarjeta() {
	}
	
	private int id;
	
	private int codigo;
	
	private orm.Cliente cliente;
	
	private orm.Coordenada coordenada;
	
	private void setId(int value) {
		this.id = value;
	}
	
	public int getId() {
		return id;
	}
	
	public int getORMID() {
		return getId();
	}
	
	public void setCodigo(int value) {
		this.codigo = value;
	}
	
	public int getCodigo() {
		return codigo;
	}
	
	public void setCliente(orm.Cliente value) {
		if (this.cliente != value) {
			orm.Cliente lcliente = this.cliente;
			this.cliente = value;
			if (value != null) {
				cliente.setTarjeta(this);
			}
			else {
				lcliente.setTarjeta(null);
			}
		}
	}
	
	public orm.Cliente getCliente() {
		return cliente;
	}
	
	public void setCoordenada(orm.Coordenada value) {
		if (this.coordenada != value) {
			orm.Coordenada lcoordenada = this.coordenada;
			this.coordenada = value;
			if (value != null) {
				coordenada.setTarjeta(this);
			}
			else {
				lcoordenada.setTarjeta(null);
			}
		}
	}
	
	public orm.Coordenada getCoordenada() {
		return coordenada;
	}
	
	public String toString() {
		return String.valueOf(getId());
	}
	
}
